package ConnectWordsTool;

import java.util.HashMap;

/**
 * Represents a page in a exercise.
 * @author Knut
 */
class ConnectWordsPage {
	/**
	 * The description for this page.
	 */
	private String description = "";
	
	/**
	 * All the words on this page. Left and right.
	 */
	private HashMap<String, String> words = new HashMap<String, String>();
	
	/**
	 * Add a set of word to the page.
	 * @param left
	 * @param right
	 */
	public void addWords(String left, String right) {
		words.put(left, right);
	}
	
	/**
	 * Get the description ofthe page.
	 * @return
	 */
	public String getDescription() {
		return description;
	}
	
	/**
	 * Retrieve the words hashMap
	 * @return
	 */
	public HashMap<String, String> getWords() {
		return words;
	}
	
	/**
	 * Set the description of this page.
	 * @param description
	 */
	public void setDescription(String description) {
		this.description = description;
	}
}